#!/usr/bin/python
# -*- coding: UTF-8 -*-

#导入requests库
import requests   

url = "http://www.zongheng.com/"
headers = {
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36"
}

r = requests.get(url, headers=headers)
data = {
"pinyin": "doupocangqiong",
"content_id": "4",
}
r = requests.post(url, data=data, headers=headers)
filename=r.content
# with open('a.html','w') as f:
# #print r.status_code  # 获取响应状态码
# #print r.content  # 获取响应消息
#     f.write(r.content)

